package com.study.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.study.model.entity.Memo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface MemoMapper extends BaseMapper<Memo> {

    @Select("select ")
    List<Memo> findMemoByTagName(@Param("userId") String userId,@Param("tagName") String tagName);

    Memo findByUserIdAndMemoId(String userId, String memoId);


    List<Map> findDailyCount(String userId);
}
